package com.gitee.huanminabc.utils_tools.security.enums;


import com.baomidou.mybatisplus.annotation.IEnum;

public enum UserStatusEnum implements IEnum<Integer> {
    NORMAL(0, "正常"),
    DISABLED(1, "停用");

    private Integer value;
    private String desc;

    UserStatusEnum(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() { //用于mybatis-plus 实体类中的枚举类型字段映射
        return this.value;
    }
}
